Windows:https://learn.microsoft.com/en-us/troubleshoot/microsoft-365-apps/activation/reset-activation-state
Mac:https://support.microsoft.com/en-us/microsoft-365-activation-licensing/how-to-remove-office-license-files-on-a-mac